package logic

import (
	"github.com/go-pay/gopay/alipay"
	"yundian/internel/app/models/orders"
)

func (logic *OrderLogic) HandleZfbCancelOrderCash(refundMoney int64, orderInfo *orders.OrderModel) (respData *alipay.TradeRefundResponse, err error) {

	c := NewAliPayOrderLogicAppid(orderInfo.Appid, orderInfo.TradeNo)
	aliRsp, err := c.AliPayTradeRefund(refundMoney, orderInfo.OutTradeNo, "订单退款")
	return aliRsp, err
}
